package com.cloudfun.campusshare.common.model.dto;

import com.cloudfun.campusshare.common.constant.BidStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * Created by Huqin on 2020/4/8
 */
@Data
@ApiModel(value = "招标信息修改DTO")
public class BidModifyDTO extends BidCreateDTO {

    @NotEmpty(message = "id不能为空")
    private String id;

    @ApiModelProperty("状态")
    private BidStatus status;

    @ApiModelProperty("中标方")
    @Length(max = 50, message = "中标方限制50个字符")
    private String winner;

    @ApiModelProperty("成交公示")
    @Length(max = 65535, message = "成交公示限制65535个字符")
    private String publicity;
}
